home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_12_05
/
plauger
/
setf.c
< prev
next >
Wrap
C/C++ Source or Header
|
1994-03-08
|
290b
|
15 lines
--------------- Listing 10: The function ios::setf(fmtflags) -----------
// iossetf1 -- ios::setf(fmtflags)
#include <ios>
ios::fmtflags ios::setf(fmtflags nf)
{ // set format bits
ios::fmtflags of = _Fmtfl;
_Fmtfl |= nf & _Fmtmask;
return (of);
}